﻿using System.Diagnostics;

namespace 享元模式_围棋例子
{
    //围棋旗子类充当享元类
    public abstract class IgoChessman
    {
        public abstract string GetColor();

        public void Display(Coordiantes coordiantes)
        {
            Debug.WriteLine(@"棋子颜色：{0},棋子位置：{1}，{2}", GetColor(), coordiantes.X, coordiantes.Y);
        }
    }
}
